import axios from '../axios'

/* 
 * 系统登录模块
 */

// 登录
export const login = data => {
    return axios({
        url: '/api/login',
        method: 'post',
        data
    })
}

// 登录2
export const login2 = () => {
    return axios({
        url: '/api/login2',
        method: 'post',
        data: {
            "account": "admin",
            "password": "admin",
        }
    })
}

// 登出
export const logout = () => {
    return axios({
        url: 'logout',
        method: 'get'
    })
}

export const removeKey = params => {
    return axios({
        url: '/api/removeKey',
        method: 'post',
        params: params
    })
}

// 验证
export const verify = params => {
    return axios({
        url: '/api/verify',
        method: 'post',
        params: params
    })
}